package com.ruoyi.swla2.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.swla2.mapper.WqHistoryDataMapper;
import com.ruoyi.swla2.domain.WqHistoryData;
import com.ruoyi.swla2.service.IWqHistoryDataService;

/**
 * 水质检测仪-历史数据Service业务层处理
 *
 * @author gdqt
 * @date 2024-09-09
 */
@Service
public class WqHistoryDataServiceImpl implements IWqHistoryDataService {
    @Autowired
    private WqHistoryDataMapper wqHistoryDataMapper;

    /**
     * 查询水质检测仪-历史数据
     *
     * @param ID 水质检测仪-历史数据主键
     * @return 水质检测仪-历史数据
     */
    @Override
    public WqHistoryData selectWqHistoryDataByID(Long ID) {
        return wqHistoryDataMapper.selectWqHistoryDataByID(ID);
    }

    /**
     * 查询水质检测仪-历史数据列表
     *
     * @param wqHistoryData 水质检测仪-历史数据
     * @return 水质检测仪-历史数据
     */
    @Override
    public List<WqHistoryData> selectWqHistoryDataList(WqHistoryData wqHistoryData) {
        return wqHistoryDataMapper.selectWqHistoryDataList(wqHistoryData);
    }

    /**
     * 新增水质检测仪-历史数据
     *
     * @param wqHistoryData 水质检测仪-历史数据
     * @return 结果
     */
    @Override
    public int insertWqHistoryData(WqHistoryData wqHistoryData) {
        return wqHistoryDataMapper.insertWqHistoryData(wqHistoryData);
    }

    /**
     * 修改水质检测仪-历史数据
     *
     * @param wqHistoryData 水质检测仪-历史数据
     * @return 结果
     */
    @Override
    public int updateWqHistoryData(WqHistoryData wqHistoryData) {
        return wqHistoryDataMapper.updateWqHistoryData(wqHistoryData);
    }

    /**
     * 批量删除水质检测仪-历史数据
     *
     * @param IDs 需要删除的水质检测仪-历史数据主键
     * @return 结果
     */
    @Override
    public int deleteWqHistoryDataByIDs(Long[] IDs) {
        return wqHistoryDataMapper.deleteWqHistoryDataByIDs(IDs);
    }

    /**
     * 删除水质检测仪-历史数据信息
     *
     * @param ID 水质检测仪-历史数据主键
     * @return 结果
     */
    @Override
    public int deleteWqHistoryDataByID(Long ID) {
        return wqHistoryDataMapper.deleteWqHistoryDataByID(ID);
    }
}
